package bean;

import java.util.Date;

public class Student {
    String name;
    int age;
    public Student(){}
    public Student(String name,int age){
        this.name=name;
        this.age=age;
    }

    public static void main(String[] args) throws InterruptedException {
        Date d1 = new Date();
        Thread.sleep(3000);
        Date d2 = new Date();
        Thread.sleep(3000);
        Date d3 = new Date();
        System.out.println(d2.after(d1));
        System.out.println(d2.after(d3));
        System.out.println(d1.getTime());
        System.out.println(d2.getTime());
        System.out.println(d3.getTime());
        System.out.println(d3.getTime()-d2.getTime());
        System.out.println(d3.getTime()-d1.getTime());
        System.out.println(d2.getTime()-d1.getTime());
    }
}
